project(hrd_core)

set(sub_modules
    cjson
    circle_queue
    hash_table
    hrd_bitmask
    hrd_coord
    hrd_displayer
    hrd_loader
    hrd_solver
    # hrd_logger
)

foreach(sub_module ${sub_modules})
    add_subdirectory(${sub_module})
endforeach(sub_module submodules)

add_library(hrd_core STATIC hrd_core.c)
target_include_directories(hrd_core
    PRIVATE
    ./
    ./hrd_bitmask/inc
    ./hrd_coord/inc
    ./hrd_displayer/inc
    ./hrd_loader/inc
    ./hrd_logger/inc
    ./hrd_solver/inc
)
target_link_libraries(hrd_core
    hrd_bitmask
    hrd_coord
    hrd_displayer
    hrd_loader
    hrd_solver
)
